/**
 * 
 */
package com.tomagency.cyberlab.client.rpc;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.tomagency.cyberlab.shared.rpc.ServletServicePfade;

import de.gammadata.gwt.modelle.ResultObject;

/**
 * @author gfr
 *
 */
public interface BelegService extends RemoteService {
	
	public ResultObject placeBuBuOrder(Integer belegId);
	public ResultObject setBelegStatus(Integer belegId, String status);
	
	public static class Util {
		  public static BelegServiceAsync getInstance() {
			  BelegServiceAsync instance=(BelegServiceAsync) GWT.create(BelegService.class);
			  	ServiceDefTarget target = (ServiceDefTarget) instance;
			  	target.setServiceEntryPoint(ServletServicePfade.BelegServiceRPC);
			  	return instance;
		  }
		}

}
